//
//  InfoHeadView.m
//  QuickCure1
//
//  Created by 胡晨晨 on 16/11/2.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "InfoHeadView.h"
#import "Users.h"
@implementation InfoHeadView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


+ (instancetype)infoHead{
    
    return [[NSBundle mainBundle] loadNibNamed:@"InfoHead" owner:nil options:nil].lastObject;
    
}


- (void)setUserModel:(Users *)userModel
{
    _userModel = userModel;
    self.lbl_name.text = userModel.true_name;
    self.lbl_phone.text = [userModel.mobile_number stringValue];
    self.lbl_cardId.text = [userModel.user_id stringValue];
    
}

@end
